<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
    <title>菜类管理</title>
    <hdjs/>
    <bootstrap/>
</head>

<body>
<div class="wrap">
    <table class="table2">
        <thead>
        <tr>
            <td>菜类id</td>
            <td>菜类名称</td>
            <td>是否显示</td>
            <td>排序</td>
            <td>菜品</td>
            <td width="200">操作</td>
        </tr>
        </thead>
        <tbody>
            <foreach from="$data" value="$v">
                <tr>
                    <td>{$v.tid}</td>
                    <td>{$v.tname}</td>
                    <td>{$v.is_show}</td>
                    <td>{$v.order}</td>
                    <td>
                        <a href="{|U:'Store/goods',array('tid'=>$v['tid'])}" class="btn btn-info btn-xs">菜品</a>
                    </td>
                    <td width="200">
                        <a href="{|U:'Store/type_edit',array('tid'=>$v['tid'])}" class="btn btn-success btn-xs">编辑</a>
                        <a href="javascript:;" class="btn btn-danger btn-xs"onclick="if(confirm('确定删除吗？')) location.href='{|U:'Store/type_dele',array('tid'=>$v['tid'])}'">删除</a>
                    </td>
                </tr>    
            </foreach>
            <div class="position-bottom">
                <a href="{|U:'Store/type_add',array('sid'=>$sid)}" class="hd-success">添加菜类</a>
            </div>
        </tbody>
    </table>

</div>

</body>
</html>


